package com.showcai.service;

import com.github.pagehelper.PageInfo;
import com.showcai.module.Product;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-3-29.
 */
public interface ProductService {


    Product modifyProduct(Product product) throws MyRunTimeExcption;
    Product getProductByProductId(Long productId) throws MyRunTimeExcption;
    Product getProductByTid(Long tid);
    PageInfo<Product> getProductList(Integer page, Integer pageSize) throws MyRunTimeExcption;
    void stopProduct(Long productId);
    void operateProduct(Long productId);
    PageInfo getPageInfoProductList(Map<String, String> map) throws MyRunTimeExcption;

}
